package qf.com.jiguangdemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    private long id;
    private TextView tv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        id = getIntent().getLongExtra("id",-1);
        if (id!=-1) {
            tv = ((TextView) findViewById(R.id.tv));
            tv.setText(String.valueOf(id));
        }
    }
}
